export default function readCookie(n) {
  for (var t, r = n + "=", u = document.cookie.split(";"), i = 0; i < u.length; i++) {
    for (t = u[i]; t.charAt(0) == " ";)t = t.substring(1, t.length);
    if (t.indexOf(r) == 0)return t.substring(r.length, t.length)
  }
  return null
}